﻿@using MvcApplication7;
@using MvcApplication7.Models;
@model MvcApplication7.Models.Folder1Action1ViewModel
<!DOCTYPE html>
<html>
<head>
    <title></title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.4.4.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/MyJScript.js")" type="text/javascript"></script>
    @{Model.JsRenderer.RenderJs(Html);}
    <script type="text/javascript">
        $(document).ready(function () {
            $("#button1").bind(
                "click",
                function () {
                    refreshDivs('@Url.Action("Ajax1", "Folder1")');
                });
        });
    </script>
</head>
<body>
    <div class="black-border">
        @{Html.RenderPartial(Model.Folder1Pv1ScriptedViewInfo, renderModel => new Folder1Pv1ViewModel(renderModel));}
    </div>
    <div class="black-border">
        @{Html.RenderPartial(Model.Folder1Pv2ScriptedViewInfo2, renderModel => new Folder1Pv2ViewModel());}
    </div>
    <div>
        <input id="button1" type="button" value="Refresh first" />
        <input id="button2" type="button" value="Refresh second" />
        <input id="button3" type="button" value="Refresh both" />
    </div>
</body>
</html>
